//
//  JWAnimator.h
//  wolf3d
//
//  Created by James Weatherley on 06/12/2009.
//  Copyright 2009 James Weatherley. All rights reserved.
//

#import <Foundation/Foundation.h>

@class JWRobot;

@interface JWAnimator : NSObject {

	float deltaX;
	float deltaY;
	float deltaZ;
	float deltaAngle;
	float deltaAzimuth;
	
	float targetX;
	float targetY;
	float targetZ;
	
	BOOL absorbOnArrival;
	NSUInteger animationFrames;
	
	JWRobot* robot;
}

@property (readonly) NSUInteger animationFrames;

+(JWAnimator*)animator;

-(void)setTargetX:(float)x y:(float)y z:(float)z;
-(void)uturn;
-(void)orbit;
-(void)deorbit;

-(void)addOnArrival:(JWRobot*)robot;

-(void)calculateAnimationFrames;
-(void)animate;

@end
